package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityXfSignOrder;

import java.util.List;

public interface XfSignOrderService extends IService<EntityXfSignOrder> {
    EntityXfSignOrder addSignOrder(Long companyId,EntityXfSignOrder entityXfSignOrder);

    Boolean updateSignOrder(Long companyId,EntityXfSignOrder entityXfSignOrder);

    EntityXfSignOrder getSignOrder(Long companyId,Integer merchId ,String orderNo);

    List<EntityXfSignOrder> getUserSignPhones(Long companyId, List<Long> pIds);


    List<EntityXfSignOrder> list(Long companyId,EntityXfSignOrder entityXfSignOrder);

    String encode(Long companyId,String phone,String key);

    String decode(Long companyId,String phone,String key);

    Page<EntityXfSignOrder> list(Long companyId, int page, int size);

    public boolean updatePhone(Long companyId, EntityXfSignOrder entityXfSignOrder);

}
